staticMyOD: main.o tc.o tx.o
	gcc lib/main.o lib/tc.o lib/tx.o -o bin/staticMyOD
main.o: src/main.c include/head.h
	gcc -c src/main.c -Iinclude -o lib/main.o
tc.o: src/tc.c include/head.h 
	gcc -c src/tc.c -Iinclude -o lib/tc.o
tx.o: src/tx.c include/head.h
	gcc -c src/tx.c -Iinclude -o lib/tx.o


dllMyOD: src/main.c libMyOD.so include/head.h
	gcc -Iinclude -Llib -lMyOD src/main.c -o bin/dllMyOD
libMyOD.so: dlltx.o dlltc.o
	gcc -shared -o lib/libMyOD.so lib/dlltx.o lib/dlltc.o 
dlltc.o: src/tc.c include/head.h
	gcc -c -fPIC -Iinclude src/tc.c -o lib/dlltc.o
dlltx.o: src/tx.c include/head.h
	gcc -c -fPIC -Iinclude src/tx.c -o lib/dlltx.o


clean:
	rm lib/*
	rm bin/*


static: staticMyOD
dll: dllMyOD
all: dllMyOD staticMyOD